package com.jydd.singlekotlinmvvm.comm.client.apis


import com.jydd.singlekotlinmvvm.comm.model.request.CreateAuthorization
import com.jydd.singlekotlinmvvm.comm.model.response.AuthorizationResp
import com.jydd.singlekotlinmvvm.comm.model.response.UserInfo
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * created by 韦敏敏
 * on 2020/1/21
 */
interface AuthApis {
    @POST("/authorizations")
    suspend fun auth(@Body body: CreateAuthorization) : AuthorizationResp
    @GET("/user")
    suspend fun getUserInfo(@Query("access_token") accessToken : String) : UserInfo
}